package com.jinyu.dao.mapper.sys;

import com.jinyu.dao.entity.sys.SysUser;
import com.jinyu.dao.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: yangli
 * @Despriction:
 * @Package: com.jinyu.dao.mapper.sys
 * @Date:Created in 2022/5/3 22:17
 * @Modify By:
 */
@Mapper
public interface SysUserMapper extends BaseMapperPlus<SysUser> {
    int insert(SysUser sysUser);

    int delete(@Param("id") String id);

    int update(SysUser sysUser);

    SysUser selectByOne(@Param("userName") String userName);

    List<SysUser> pageList(@Param("offset") int offset, @Param("pageSize") int pageSize);
}
